package com.wqc;

import java.io.Serializable;
import java.util.Date;

public class Spittle implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private String message;
    private Date postedTime;

    public Spittle() {

    }

    public Spittle(Long id, String message, Date postedTime) {
        this.id = id;
        this.message = message;
        this.postedTime = postedTime;
    }

    public Long getId() {
        return this.id;
    }
    public String getMessage() {
        return this.message;
    }
    public Date getPostedTime() {
        return this.postedTime;
    }

    @Override
    public String toString() {
        return "Spittle{" +
                "id=" + id +
                ", message='" + message + '\'' +
                ", postedTime=" + postedTime +
                '}';
    }
}
